<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Work Center Theme - Free CSS Template</title>
<meta name="keywords" content="work center, theme, piecemaker 3D image slider, 960, free templates, CSS, HTML" />
<meta name="description" content="Work Center Theme is a free CSS template by templatemo.com for everyone. Feel free to use it for any purpose." />
<link href="css/templatemo_style.css" rel="stylesheet" type="text/css" />

<script type="text/javascript" src="js/swfobject/swfobject.js"></script>
        
<script type="text/javascript">
  var flashvars = {};
  flashvars.cssSource = "css/piecemaker.css";
  flashvars.xmlSource = "piecemaker.xml";
	
  var params = {};
  params.play = "true";
  params.menu = "false";
  params.scale = "showall";
  params.wmode = "transparent";
  params.allowfullscreen = "true";
  params.allowscriptaccess = "always";
  params.allownetworking = "all";
  
  swfobject.embedSWF('piecemaker.swf', 'piecemaker', '960', '440', '10', null, flashvars,params, null);

</script>

<script language="javascript" type="text/javascript">
function clearText(field)
{
    if (field.defaultValue == field.value) field.value = '';
    else if (field.value == '') field.value = field.defaultValue;
}
</script>

<link rel="stylesheet" type="text/css" href="css/ddsmoothmenu.css" />

<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/ddsmoothmenu.js">

/***********************************************
* Smooth Navigational Menu- (c) Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/

</script>

<script type="text/javascript">

ddsmoothmenu.init({
	mainmenuid: "templatemo_menu", //menu DIV id
	orientation: 'h', //Horizontal or vertical menu: Set to "h" or "v"
	classname: 'ddsmoothmenu', //class added to menu's outer DIV
	//customtheme: ["#1c5a80", "#18374a"],
	contentsource: "markup" //"markup" or ["container_id", "path_to_menu_file"]
})

</script> 
</head>

<body>
<?php 
        // Requires and includes
	require_once('../../Smarty/libs/Smarty.class.php');
	// Creating a new Smarty Object
	$smarty = new Smarty();
	// Setting the default directories
	$smarty->setTemplateDir('./smarty/templates/');
	$smarty->setCompileDir('./smarty/templates_c/');
	$smarty->setConfigDir('./smarty/configs/');
	$smarty->setCacheDir('./smarty/cache/');
	
	//$smarty->assign('name','Ned');

	//** un-comment the following line to show the debug console
	//$smarty->debugging = true;

	$smarty->display('header.tpl');
?>
<div id="templatemo_middle_wrapper">
	<div id="templatemo_middle">
        <div id="piecemaker">
          <p></p>
        </div>
	</div>
</div> <!-- END of slider -->
<?PHP
        
	
        
        $smarty->display('mainPage.tpl');
        $smarty->display('footer.tpl');
/*      
	include("php/Json_class.php");
	//use latest minorRev 14
	$url  ='http://api.ean.com/ean-services/rs/hotel/v3/list?minorRev=5';
	$url .= '&apiKey=ukd47n3sahbbvpu247dknv5r';
	$url .= '&cid=55505';
	$url .= '&locale=en_US&city=Dallas&stateProvinceCode=TX&countryCode=US&numberOfResults=4';
	$url .= '&searchRadius=50';
	//using the cache returns results much faster
	$url .= '&supplierCacheTolerance=MED_ENHANCED';
	//dates and occupancy
	$url .='&arrivalDate=10/20/2012&departureDate=10/23/2012&room1=2';
	$url .='&_type=json';
  
	$header[] = "Accept: application/json";
	$header[] = "Accept-Encoding: gzip";
  
	$ch = curl_init();
	  
	curl_setopt( $ch, CURLOPT_HTTPHEADER, $header );
	curl_setopt($ch,CURLOPT_ENCODING , "gzip");
	curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');
	curl_setopt( $ch, CURLOPT_URL, $url );
	curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true );
	$response = json_decode(curl_exec($ch));
	//print_r($url);
	$jsonObject= new Json($response);
	$hotelList = $jsonObject->GetHotelList();
*/

?>
</body>
</html>